

import GameDataUtilTs from "./GameDataUtilTs";

export default class LogicConfigTs extends cc.Component {

    public static GATE_SCENE = "GateH"
    public static IS_LOGIN_VERTICAL = true
    public static SCENENAME_LOGIN = "Login2";   //竖屏登录页面
    // public static SCENENAME_LOGIN = "LoginHTs";  //横屏登录场景
    public static SCENENAME_LOBBY = "LobbyBlue";
    public static SCENENAME_GAME_2 = "TwoPlayerGame";
    public static SCENENAME_GAME_6 = "SixPlayerGame";
    public static LAST_ENTERED_ROOM: number = -1;  // 上一次进入的房间id


    public static initLogicScene(){
        let nativePara = GameDataUtilTs.getIsAllHorizontal()
        let isAllHorizontal = nativePara || 0

        if(isAllHorizontal != 0){
            LogicConfigTs.IS_LOGIN_VERTICAL = false
            LogicConfigTs.SCENENAME_LOGIN = "LoginHTs"
        }else {
            LogicConfigTs.IS_LOGIN_VERTICAL = true
            LogicConfigTs.SCENENAME_LOGIN = "Login2"
        }
    }

    // onLoad () {}

    start() {

    }

    // update (dt) {}
}
